package com.sky.mapper.admin;

import com.github.pagehelper.Page;
import com.sky.dto.CategoryDTO;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.pojo.Category;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Description TODO
 * @Author sheng
 * @Date 2025/8/23 16:45
 */
@Mapper
public interface CategoryMapper {

    @Insert("insert into category(type, name, sort, status, create_time, update_time, create_user, update_user)" +
            "values (#{type} , #{name}, #{sort} , #{status}, #{createTime} ,#{updateTime} ,#{createUser}, #{updateUser})")
    void add(Category category);

    Page<Category> pageQuery(CategoryPageQueryDTO dto);
}
